<div class="container">
    <legend><h3>会议室审核记录</h3></legend>
    <table class="table table-bordered ">
        <tr class="th">
            <td>序号</td>
            <td widtd="15%">负责人</td>
            <td widtd="10%">时间段</td>
            <td widtd="10%">开始时间</td>
            <td widtd="10%">结束时间</td>
            <td widtd="15">场地</td>
            <td widtd="20%">备注</td>
            <td widtd="20%">操作</td>
        </tr>
        <?php foreach (history_meeting_room() as $key => $value): ?>
            <tr>
                <td><?php echo $key + 1; ?></td>
                <td><?php echo htmlspecialchars($value['leader']); ?></td>
                <td><?php echo htmlspecialchars($value['date']); ?></td>
                <td><?php echo htmlspecialchars($value['start']); ?></td>
                <td><?php echo htmlspecialchars($value['end']); ?></td>
                <td>
                    <?php
                    switch ($value['place']) {
                        case 1: echo '会议室1（左边）';
                            break;
                        case 2: echo '会议室2（右边）';
                            break;
                    }
                    ?>
                </td>
                <td><?php echo $value['detail']; ?></td>
                <td>
                    <?php
                    switch ($value['status']) {
                        case 1: echo '已同意';
                            break;
                        case -1: echo '已拒绝';
                            break;
                    }
                    ?>
                </td>
            </tr>
        <?php endforeach; ?>
    </table>
</div>